<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		<script>
			function Person(oname,oage,osex,onan){
				this.name=oname;
				this.age=oage;
				this.sex=osex;
				this.nan=onan;
				this.show=function(){
					alert(this.nan+"说今天很热")
				}
			}
			var person=new Person("小明","18","男","男朋友");
			    person.show();
		</script>
	</body>
</html>
